﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using System.Xml;
using System.Xml.Schema;


namespace Common
{
    [Serializable]
    public class Height : ISerializable
    {
        private double height;
        
        public Height() { }

        public Height(double height)
        {
            this.height = height;
        }

        public override String ToString()
        {
            return this.height.ToString();
        }

        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            info.AddValue("height", height);
        }

        public Height(SerializationInfo info, StreamingContext context)
        {
            height = (double)info.GetValue("height", typeof(double));
        }
    }
}
